/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - SellTicket
 * <p>Powered by webrx On 2021-08-24 11:47:32
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class SellTicket {
    public static void main(String[] args) {
        var ticket = new Ticket(50);
        var t1 = new Thread(ticket, "东风路");
        var t2 = new Thread(ticket, "科学大道");
        var t3 = new Thread(ticket, "瑞达路");
        var t4 = new Thread(ticket, "南阳路");
        var t5 = new Thread(ticket, "火车站");
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();

    }
}
